package com.shanzmoo.base.bean;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description  分页请求基础类
 * @Author       guizhao
 * @Date         2020/4/9 15:08
 */
@Data
public class PageReqBase implements Serializable {

    @NotNull
    @Min(1)
    @Max(100000)
    @ApiModelProperty(name = "pageNum", value = "当前页", example = "1", required = true)
    private Integer pageNum = 1;

    @NotNull
    @Min(1)
    @Max(500)
    @ApiModelProperty(name = "pageSize", value = "每页数量", example = "10", required = true)
    private Integer pageSize = 10;
}
